<template>
  <div>
    <button @click="flag=!flag">切换</button>
    <!-- <life-cycle3 v-if="flag"></life-cycle3> -->
    <Parent v-if="flag"></Parent>
  
  </div>
</template>

<script>
// import LifeCycle3 from './views/LifeCycle3.vue'
import Parent from './views/Parent.vue'
export default {
   components: { Parent },
  data(){
    return{
      flag:true
    }
  }

}
</script>

<style>

</style>